
<%@ Page Language="C#" Theme="Default" MasterPageFile="~/site.master" AutoEventWireup="true"  CodeFile="ArtiklVrijednosti.aspx.cs" Inherits="ArtiklVrijednosti" Title="ArtiklVrijednosti List" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">Artikl Vrijednosti List</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
		<data:GridViewSearchPanel ID="GridViewSearchPanel1" runat="server" GridViewControlID="GridView1" Visible="true" />
		<br />
		<data:EntityGridView ID="GridView1" runat="server"			
			AutoGenerateColumns="False"					
			OnSelectedIndexChanged="GridView_SelectedIndexChanged"
			DataSourceID="ArtiklVrijednostiDataSource"
			DataKeyNames="Id"
			AllowMultiColumnSorting="false"
			DefaultSortColumnName="" 
			DefaultSortDirection="Ascending"	
			ExcelExportFileName="Export_ArtiklVrijednosti.xls"  		
			>
			<Columns>
				<asp:CommandField ShowSelectButton="True" ShowEditButton="True" />				
				<asp:BoundField DataField="Tekstualno" HeaderText="Tekstualno" SortExpression="Tekstualno"  />
				<asp:BoundField DataField="CijeliBroj" HeaderText="Cijeli Broj" SortExpression="CijeliBroj"  />
				<asp:BoundField DataField="RealanBroj" HeaderText="Realan Broj" SortExpression="RealanBroj"  />
				<asp:BoundField DataField="Datum" HeaderText="Datum" SortExpression="Datum"  />
				<asp:TemplateField HeaderText="Id Artikl Specifikacija">
				<ItemTemplate>
						<asp:Repeater ID="Id1" runat="server" DataSourceID="ArtiklSpecifikacijaFilter1">
							<ItemTemplate>
								<%# Eval("Naziv") %>
							</ItemTemplate>
						</asp:Repeater>

						<data:EntityDataSourceFilter ID="ArtiklSpecifikacijaFilter1" runat="server"
							DataSourceID="ArtiklSpecifikacijaDataSource1"
							Filter='<%# String.Format("Id = {0}", Eval("IdArtiklSpecifikacija")) %>'
						/>
					</ItemTemplate>
				</asp:TemplateField>


				<asp:TemplateField HeaderText="Id Artikl">
				<ItemTemplate>
						<asp:Repeater ID="Id2" runat="server" DataSourceID="ArtiklFilter2">
							<ItemTemplate>
								<%# Eval("Naziv") %>
							</ItemTemplate>
						</asp:Repeater>

						<data:EntityDataSourceFilter ID="ArtiklFilter2" runat="server"
							DataSourceID="ArtiklDataSource2"
							Filter='<%# String.Format("Id = {0}", Eval("IdArtikl")) %>'
						/>
					</ItemTemplate>
				</asp:TemplateField>


			</Columns>
			<EmptyDataTemplate>
				<b>No ArtiklVrijednosti Found!</b>
			</EmptyDataTemplate>
		</data:EntityGridView>
		<br />
		<asp:Button runat="server" ID="btnArtiklVrijednosti" OnClientClick="javascript:location.href='/NetROS.Tiers.website/admin/ArtiklVrijednostiEdit.aspx'; return false;" Text="Add New"></asp:Button>
			
		<data:ArtiklSpecifikacijaDataSource ID="ArtiklSpecifikacijaDataSource1" runat="server"
			SelectMethod="GetAll"
		/>

		<data:ArtiklDataSource ID="ArtiklDataSource2" runat="server"
			SelectMethod="GetAll"
		/>

		<data:ArtiklVrijednostiDataSource ID="ArtiklVrijednostiDataSource" runat="server"
			SelectMethod="GetPaged"
			EnablePaging="True"
			EnableSorting="True"
		>
			<Parameters>
				<data:CustomParameter Name="WhereClause" Value="" ConvertEmptyStringToNull="false" />
				<data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="false" />
				<asp:ControlParameter Name="PageIndex" ControlID="GridView1" PropertyName="PageIndex" Type="Int32" />
				<asp:ControlParameter Name="PageSize" ControlID="GridView1" PropertyName="PageSize" Type="Int32" />
				<data:CustomParameter Name="RecordCount" Value="0" Type="Int32" />
			</Parameters>
		</data:ArtiklVrijednostiDataSource>
	    		
</asp:Content>



